package com.yupi.springbootinit.statemachine.enums;

import com.yupi.springbootinit.statemachine.core.State;

/**
 * 质检任务状态枚举
 * 检验状态流程：待检验 → 检验中 → 检验合格/不合格 → 已完成
 */
public enum QualityInspectionStateEnum implements State {
    
    PENDING("PENDING", "待检验", "QUALITY_INSPECTION"),
    IN_PROGRESS("IN_PROGRESS", "检验中", "QUALITY_INSPECTION"),
    QUALIFIED("QUALIFIED", "检验合格", "QUALITY_INSPECTION"),
    UNQUALIFIED("UNQUALIFIED", "检验不合格", "QUALITY_INSPECTION"),
    COMPLETED("COMPLETED", "已完成", "QUALITY_INSPECTION");
    
    private final String code;
    private final String description;
    private final String stateType;
    
    QualityInspectionStateEnum(String code, String description, String stateType) {
        this.code = code;
        this.description = description;
        this.stateType = stateType;
    }
    
    @Override
    public String getCode() {
        return code;
    }
    
    @Override
    public String getDescription() {
        return description;
    }
    
    @Override
    public String getStateType() {
        return stateType;
    }
}